import request from "@/utils/request";

/**
 * 获取穴位树形列表
 * @param {Object} params 查询参数
 * @returns {Promise} 返回穴位树形列表数据
 */
export function getAcupointTreeListApi(params) {
  return request({
    url: "/config/dict/getAcupointTreeList",
    method: "get",
    params,
  });
}

/**
 * 添加穴位
 * @param {Object} data 穴位信息
 * @returns {Promise} 返回添加结果
 */
export function addAcupointApi(data) {
  return request({
    url: "/config/dict/addAcupoint",
    method: "post",
    data,
  });
}

/**
 * 更新穴位
 * @param {Object} data 穴位信息
 * @returns {Promise} 返回更新结果
 */
export function updateAcupointApi(data) {
  return request({
    url: "/config/dict/updateAcupoint",
    method: "post",
    data,
  });
}

/**
 * 删除穴位
 * @param {Object} data 删除参数
 * @returns {Promise} 返回删除结果
 */
export function deleteAcupointApi(data) {
  return request({
    url: "/config/dict/deleteAcupoint",
    method: "post",
    data,
  });
} 